package com.ruoyi.web.controller.mall.cmsNoticeSys.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;

/**
 * 系统公告对象 cms_notice_sys
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
public class CmsNoticeSys //extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公告 */
    private String id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 标题图片 */
    @Excel(name = "标题图片")
    private String img;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 消息类型（0商家1用户2全部） */
    @Excel(name = "消息类型", readConverterExp = "0=商家1用户2全部")
    private Integer type;

    /** 状态(0-显示,1-隐藏) */
    @Excel(name = "状态(0-显示,1-隐藏)")
    private Integer status;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 删除标记(0-正常,1-删除) */
    private Integer delFlag;
    private Integer pageNum;
    private Integer pageSize;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("img", getImg())
            .append("content", getContent())
            .append("type", getType())
            .append("status", getStatus())
            .append("author", getAuthor())
            .append("createAt", getCreateAt())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
